﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using DTO;
using System.Data;
namespace BUS
{
    public class NHAXUATBANBUS
    {
        public DataTable Loadnhaxuatban()
        {
            DataTable datatble = new DataTable();
            NHAXUATBANDAO nnxbDAO = new NHAXUATBANDAO();
            datatble = nnxbDAO.Loadnhaxuatban();
            return datatble;
        }
        public int update(DataTable datatable, string sqlquery)
        {
            NHAXUATBANDAO ldgDAO = new NHAXUATBANDAO();
            return ldgDAO.update(datatable, sqlquery);
        }

        public int themnhaxuatban(NHAXUATBANDTO ldgDTO)
        {
            NHAXUATBANDAO ldgDAO = new NHAXUATBANDAO();
            int kq = ldgDAO.themnhaxuatban(ldgDTO);
            return kq;
        }
    }
}
